package com.hospital.appconfigcontrol.module.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author lvyao
 * @since 2021-08-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("APP_CONFIGER_BASEINFO")
public class AppConfigerBaseinfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull
    @NotBlank
    @TableId("APP_NAME")
    private String appName;


    @TableField("PARAMETER_NO")
    private Integer parameterNo;

    @NotNull
    @NotBlank
    @TableField("PARAMETER_NAME")
    private String parameterName;

    @TableField("PARAINIT_VALUE")
    private String parainitValue;


    @TableField("PARAMETER_SCOPE")
    private String parameterScope;


    @TableField("EXPLANATION")
    private String explanation;

    @NotNull
    @NotBlank
    @TableField(exist = false)
    private String hospitalCode;

    @NotNull
    @NotBlank
    @TableField(exist = false)
    private String hospitalName;

}
